﻿using System;
using GDIT.BLL;
using GDIT.Model;
using GDIT.Base.PageBaseHelper;

namespace GDIT.page.manage.content
{
    public partial class sceneryImg : System.Web.UI.Page
    {

        private BSceneryPicInfo scenery = null;
        private Mtb_SceneryPicInfo sceneryInfo = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindSceneryByGZ();
                BindSceneryByZH();
                BindSceneryBySF();
            }
        }

        private void BindSceneryByGZ()//绑定广州风貌
        {
            scenery = new BSceneryPicInfo();
            this.GZRepeater.DataSource = scenery.SelectSceneryPicInfoByType("广州风貌");
            this.GZRepeater.DataBind();
        }

        private void BindSceneryByZH()//绑定珠海风貌
        {
            scenery = new BSceneryPicInfo();
            this.ZHRepeater.DataSource = scenery.SelectSceneryPicInfoByType("珠海风貌");
            this.ZHRepeater.DataBind();
        }

        private void BindSceneryBySF()//绑定书法
        {
            scenery = new BSceneryPicInfo();
            this.LDRepeater.DataSource = scenery.SelectSceneryPicInfoByType("书法");
            this.LDRepeater.DataBind();
        }

        protected void btnSave_OnClick(object sender, EventArgs e)
        {
            
        }
    }
}